package prefix;

public class IntegerPlotPoint extends PlotPoint{
	
	
	public IntegerPlotPoint(int value){
		this.id = value;
		
	}
	public IntegerPlotPoint(IntegerPlotPoint p){
		this.id = p.id;
	}
	public int compareTo(PlotPoint pi){
		if(this.id < ((IntegerPlotPoint)pi).id)
			return -1;
		else if(this.id > ((IntegerPlotPoint)pi).id)
			return 1;
		else
			return 0;
	}
	public String toString(){
		return ""+id;
	}
}